<template>
  <el-checkbox-group
    @change="handleChange"
    v-model="model"
    :disabled="item.disabled"
    size="mini"
  >
    <el-checkbox-button
      v-for="it of item.optionsList"
      :key="it[item.valueKey || 'id']"
      :label="it[item.valueKey || 'id']"
      :disabled="item.disabled"
      >{{ it[item.labelKey || "label"] }}</el-checkbox-button
    >
  </el-checkbox-group>
</template>

<script>
import yDefault from "./y-default.vue";
export default {
  name: "checkbox",
  includesComponent: ["checkbox"],
  extends: yDefault,
};
</script>